import request from "../../utils/request";
import store from "../../store";
export function getKeyWordList({
	pageNum,
	pageSize
}) {

	return request({
		'url': '/solution/categories/AppList',
		headers: {
			isToken: false
		},
		'method': 'get',
		'params': {
			pageNum,
			pageSize
		}
	})
}
export function getRecommendList() {

	return request({
		'url': '/solution/recommend/keyword',
		headers: {
			isToken: true
		},
		'method': 'get',
		'params': {
			userId: store.getters.id
		}
	})
}
export function setRecommendList(categoryId) {

	return request({
		'url': '/solution/recommend/setKeyword',
		headers: {
			isToken: true
		},
		'method': 'put',
		'data': {
			userId: store.getters.id,
			categoryId
		}
	})
}